public class Main {
    public static void main(String[] args) {
        Animal animal1 = new Animal("cat");
        Animal animal2 = new Animal("cat");

       boolean flag = animal1.equals(animal2);
        System.out.println(flag);
        System.out.println(animal1 == animal2);
    }
}
